package models

import "errors"

type EnumNum int

type Enum map[EnumNum]string

func (e Enum) String(num EnumNum) (string, error) {

	str, ok := e[num]
	if ok {
		return str, nil
	}

	return "", errors.New("enumeration does not exist")
}
